{extend name="base"/}
{block name="title"}
<title>妙百睿国际幼儿园-特色活动</title>
{/block}

{block name="content"}
<div class="g-hert">
    <div class="container">
        <div class="row">
            <div class=" xuxian">
                <p class="x-left pull-left">特色活动 <span class="smalll"></span></p>
                <p class="x-right pull-right">首页&nbsp;/&nbsp;特色活动</p>
            </div>
            <div class="col-md-12 x-b">
                <img class="hidden-xs" src="{$data.img_url1}" alt="">
                <img class="visible-xs" src="{$data.img_url2}" alt="">
            </div>

            <div class="col-md-12 row x-c" id="e-pic" style="margin-top: 30px;margin-bottom: 30px">
                    <div id="carousel-example-generic" class="carousel slide scroll-c" data-ride="carousel">

                        <ol class="carousel-indicators bottom-lows">
                            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                        </ol>
                        <!-- Wrapper for slides -->
                        <div class="carousel-inner" role="listbox">
                            <?php $arr = array_merge($data['image']);?>
                            <?php for ($i = 1; $i<= ceil(count($arr)/8); $i++) { ?>
                            <div class="item {if $i == 1}active{/if}">
                                <div class="clearfix">
                                    <?php for ($j = ($i-1)*8; $j< $i*8; $j++) { if(!isset($arr[$j])) break; ?>
                                    <div class="col-md-3 col-xs-6">
                                        <div class="position">
                                            <figure>
                                                <img src="{$arr[$j]}">
                                            </figure>
                                        </div>
                                    </div>
                                    <?php }?>
                                </div>
                            </div>
                            <?php }?>
                        </div>
                        <!-- Controls -->
                        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                            <img class="icon-left" src="__HTML__/img/lleft.jpg">
                        </a>
                        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                            <img class="icon-right" src="__HTML__/img/rright.jpg">
                        </a>
                    </div>
            </div>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
<script>
    $(document).ready(function(){
        $('#carousel-example-generic').carousel({interval:15000});//每隔5秒自动轮播
    });
</script>
{/block}